<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:isc="http://extension-functions.intersystems.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
	
	<!-- C-CDA Header Templates -->
	<xsl:variable name="ccda-USRealmHeader">2.16.840.1.113883.10.20.22.1.1</xsl:variable>

	<!-- C-CDA Document Templates -->
	<xsl:variable name="ccda-CarePlan">2.16.840.1.113883.10.20.22.1.15</xsl:variable>
	<xsl:variable name="ccda-ConsultationNote">2.16.840.1.113883.10.20.22.1.4</xsl:variable>
	<xsl:variable name="ccda-ContinuityOfCareCCD">2.16.840.1.113883.10.20.22.1.2</xsl:variable>
	<xsl:variable name="ccda-DiagnosticImagingReport">2.16.840.1.113883.10.20.22.1.5</xsl:variable>
	<xsl:variable name="ccda-DischargeSummary">2.16.840.1.113883.10.20.22.1.8</xsl:variable>
	<xsl:variable name="ccda-HistoryAndPhysical">2.16.840.1.113883.10.20.22.1.3</xsl:variable>
	<xsl:variable name="ccda-OperativeNote">2.16.840.1.113883.10.20.22.1.7</xsl:variable>
	<xsl:variable name="ccda-ProcedureNote">2.16.840.1.113883.10.20.22.1.6</xsl:variable>
	<xsl:variable name="ccda-ProgressNote">2.16.840.1.113883.10.20.22.1.9</xsl:variable>
	<xsl:variable name="ccda-UnstructuredDocument">2.16.840.1.113883.10.20.22.1.10</xsl:variable>

	<!-- C-CDA Section Templates -->
	<xsl:variable name="ccda-AdvanceDirectivesSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.21</xsl:variable>
	<xsl:variable name="ccda-AdvanceDirectivesSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.21.1</xsl:variable>
	<xsl:variable name="ccda-AllergiesSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.6</xsl:variable>
	<xsl:variable name="ccda-AllergiesSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.6.1</xsl:variable>
	<xsl:variable name="ccda-AnesthesiaSection">2.16.840.1.113883.10.20.22.2.25</xsl:variable>
	<xsl:variable name="ccda-AssessmentAndPlanSection">2.16.840.1.113883.10.20.22.2.9</xsl:variable>
	<xsl:variable name="ccda-AssessmentSection">2.16.840.1.113883.10.20.22.2.8</xsl:variable>
	<xsl:variable name="ccda-ChiefComplaintAndReasonForVisitSection">2.16.840.1.113883.10.20.22.2.13</xsl:variable>
	<xsl:variable name="ccda-ChiefComplaintSection">1.3.6.1.4.1.19376.1.5.3.1.1.13.2.1</xsl:variable>
	<xsl:variable name="ccda-ComplicationsSection">2.16.840.1.113883.10.20.22.2.37</xsl:variable>
	<xsl:variable name="ccda-DICOMObectCatalogSection">2.16.840.1.113883.10.20.6.1.1</xsl:variable>
	<xsl:variable name="ccda-EncountersSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.22</xsl:variable>
	<xsl:variable name="ccda-EncountersSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.22.1</xsl:variable>
	<xsl:variable name="ccda-FamilyHistorySection">2.16.840.1.113883.10.20.22.2.15</xsl:variable>
	<xsl:variable name="ccda-FindingsSection">2.16.840.1.113883.10.20.6.1.2</xsl:variable>
	<xsl:variable name="ccda-FunctionalStatusSection">2.16.840.1.113883.10.20.22.2.14</xsl:variable>
	<xsl:variable name="ccda-GeneralStatusSection">2.16.840.1.113883.10.20.2.5</xsl:variable>
	<xsl:variable name="ccda-GoalsSection">2.16.840.1.113883.10.20.22.2.60</xsl:variable>
	<xsl:variable name="ccda-HealthConcernsSection">2.16.840.1.113883.10.20.22.2.58</xsl:variable>
	<xsl:variable name="ccda-HealthStatusAndOutcomesSection">2.16.840.1.113883.10.20.22.2.61</xsl:variable>
	<xsl:variable name="ccda-HistoryOfPastIllnessSection">2.16.840.1.113883.10.20.22.2.20</xsl:variable>
	<xsl:variable name="ccda-HistoryOfPresentIllnessSection">1.3.6.1.4.1.19376.1.5.3.1.3.4</xsl:variable>
	<xsl:variable name="ccda-HospitalAdmissionDiagnosisSection">2.16.840.1.113883.10.20.22.2.43</xsl:variable>
	<xsl:variable name="ccda-HospitalAdmissionMedicationsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.44</xsl:variable>
	<xsl:variable name="ccda-HospitalAdmissionMedicationsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.44.1</xsl:variable>
	<xsl:variable name="ccda-HospitalCourseSection">1.3.6.1.4.1.19376.1.5.3.1.3.5</xsl:variable>
	<!--出院诊断-->
	<xsl:variable name="ccda-HospitalDischargeDiagnosisSection">11535-2</xsl:variable>
	<!--诊断记录-->
	<xsl:variable name="ccda-DiagnosesSection">29548-5</xsl:variable>
	<xsl:variable name="ccda-HospitalDischargeMedicationsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.11</xsl:variable>
	<xsl:variable name="ccda-HospitalDischargeMedicationsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.11.1</xsl:variable>
	<xsl:variable name="ccda-HospitalDischargeInstructionsSection">2.16.840.1.113883.10.20.22.2.41</xsl:variable>
	<xsl:variable name="ccda-ImmunizationsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.2</xsl:variable>
	<xsl:variable name="ccda-ImmunizationsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.2.1</xsl:variable>
	<xsl:variable name="ccda-InstructionsSection">2.16.840.1.113883.10.20.22.2.45</xsl:variable>
	<xsl:variable name="ccda-InterventionsSection">2.16.840.1.113883.10.20.21.2.3</xsl:variable>
	<xsl:variable name="ccda-MedicationsAdministeredSection">2.16.840.1.113883.10.20.22.2.38</xsl:variable>
	<xsl:variable name="ccda-MedicationsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.1</xsl:variable>
	<xsl:variable name="ccda-MedicationsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.1.1</xsl:variable>
	<xsl:variable name="ccda-PayersSection">2.16.840.1.113883.10.20.22.2.18</xsl:variable>
	<xsl:variable name="ccda-PhysicalExamSection">2.16.840.1.113883.10.20.2.10</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareSection">2.16.840.1.113883.10.20.22.2.10</xsl:variable>
	<xsl:variable name="ccda-PostoperativeDiagnosisSection">2.16.840.1.113883.10.20.22.2.35</xsl:variable>
	<xsl:variable name="ccda-PostprocedureDiagnosisSection">2.16.840.1.113883.10.20.22.2.36</xsl:variable>
	<xsl:variable name="ccda-PreoperativeDiagnosisSection">2.16.840.1.113883.10.20.22.2.34</xsl:variable>
	<xsl:variable name="ccda-ProblemSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.5</xsl:variable>
	<xsl:variable name="ccda-ProblemSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.5.1</xsl:variable>
	<xsl:variable name="ccda-ProcedureDescriptionSection">2.16.840.1.113883.10.20.22.2.27</xsl:variable>
	<xsl:variable name="ccda-ProcedureEstimatedBloodLossSection">2.16.840.1.113883.10.20.18.2.9</xsl:variable>
	<xsl:variable name="ccda-ProcedureFindingsSection">2.16.840.1.113883.10.20.22.2.28</xsl:variable>
	<xsl:variable name="ccda-ProcedureSpecimensTakenSection">2.16.840.1.113883.10.20.22.2.31</xsl:variable>
	<xsl:variable name="ccda-ProceduresSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.7</xsl:variable>
	<xsl:variable name="ccda-ProceduresSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.7.1</xsl:variable>
	<xsl:variable name="ccda-ReasonForReferralSection">1.3.6.1.4.1.19376.1.5.3.1.3.1</xsl:variable>
	<xsl:variable name="ccda-ReasonForVisitSection">2.16.840.1.113883.10.20.22.2.12</xsl:variable>
	<xsl:variable name="ccda-ResultsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.3</xsl:variable>
	<xsl:variable name="ccda-ResultsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.3.1</xsl:variable>
	<xsl:variable name="ccda-ReviewOfSystemsSection">1.3.6.1.4.1.19376.1.5.3.1.3.18</xsl:variable>
	<xsl:variable name="ccda-SocialHistorySection">2.16.840.1.113883.10.20.22.2.17</xsl:variable>
	<!--<xsl:variable name="ccda-VitalSignsSectionEntriesOptional">2.16.840.1.113883.10.20.22.2.4</xsl:variable>
	<xsl:variable name="ccda-VitalSignsSectionEntriesRequired">2.16.840.1.113883.10.20.22.2.4.1</xsl:variable>
	-->
	<xsl:variable name="ccda-VitalSignsSectionEntriesOptional">8716-3</xsl:variable>
	<xsl:variable name="ccda-VitalSignsSectionEntriesRequired">8716-3</xsl:variable>


	<!-- C-CDA Clinical Statement and Supporting Templates -->
	<xsl:variable name="ccda-AdvanceDirectiveObservation">2.16.840.1.113883.10.20.22.4.48</xsl:variable>
	<xsl:variable name="ccda-AdvanceDirectiveParticipant">2.16.840.1.113883.10.20.1.58</xsl:variable>
	<xsl:variable name="ccda-AllergyProblemAct">2.16.840.1.113883.10.20.22.4.30</xsl:variable>
	<xsl:variable name="ccda-AllergyIntoleranceObservation">2.16.840.1.113883.10.20.22.4.7</xsl:variable>
	<xsl:variable name="ccda-AllergyStatusObservation">2.16.840.1.113883.10.20.22.4.28</xsl:variable>
	<xsl:variable name="ccda-AssessmentScaleObservation">2.16.840.1.113883.10.20.22.4.69</xsl:variable>
	<xsl:variable name="ccda-AssessmentScaleSupportingObservation">2.16.840.1.113883.10.20.22.4.86</xsl:variable>
	<xsl:variable name="ccda-AuthorParticipation">2.16.840.1.113883.10.20.22.4.119</xsl:variable>
	<xsl:variable name="ccda-AuthorizationActivity">2.16.840.1.113883.10.20.1.19</xsl:variable>
	<xsl:variable name="ccda-BirthSexObservation">2.16.840.1.113883.10.20.22.4.200</xsl:variable>
	<xsl:variable name="ccda-CognitiveStatusProblemObservation">2.16.840.1.113883.10.20.22.4.73</xsl:variable>
	<xsl:variable name="ccda-CommentActivity">2.16.840.1.113883.10.20.22.4.64</xsl:variable>
	<xsl:variable name="ccda-CoverageActivity">2.16.840.1.113883.10.20.22.4.60</xsl:variable>
	<xsl:variable name="ccda-DeceasedObservation">2.16.840.1.113883.10.20.22.4.79</xsl:variable>
	<xsl:variable name="ccda-DischargeMedication">2.16.840.1.113883.10.20.22.4.35</xsl:variable>
	<xsl:variable name="ccda-DrugVehicle">2.16.840.1.113883.10.20.22.4.24</xsl:variable>
	<xsl:variable name="ccda-EncounterActivity">2.16.840.1.113883.10.20.22.4.49</xsl:variable>
	<xsl:variable name="ccda-EncounterDiagnosis">2.16.840.1.113883.10.20.22.4.80</xsl:variable>
	<xsl:variable name="ccda-EntryReference">2.16.840.1.113883.10.20.22.4.122</xsl:variable>
	<xsl:variable name="ccda-FamilyHistoryDeathObservation">2.16.840.1.113883.10.20.22.4.47</xsl:variable>
	<xsl:variable name="ccda-FamilyHistoryObservation">2.16.840.1.113883.10.20.22.4.46</xsl:variable>
	<xsl:variable name="ccda-FamilyHistoryOrganizer">2.16.840.1.113883.10.20.22.4.45</xsl:variable>
	<xsl:variable name="ccda-FunctionalStatusProblemObservation">2.16.840.1.113883.10.20.22.4.68</xsl:variable>
	<xsl:variable name="ccda-GoalObservation">2.16.840.1.113883.10.20.22.4.121</xsl:variable> 
	<xsl:variable name="ccda-healthConcernAct">2.16.840.1.113883.10.20.22.4.132</xsl:variable>
	<xsl:variable name="ccda-HealthStatusObservation">2.16.840.1.113883.10.20.22.4.5</xsl:variable>
	<xsl:variable name="ccda-HospitalAdmissionDiagnosis">2.16.840.1.113883.10.20.22.4.34</xsl:variable>
	<xsl:variable name="ccda-HospitalDischargeDiagnosis">2.16.840.1.113883.10.20.22.4.33</xsl:variable>
	<xsl:variable name="ccda-ImmunizationActivity">2.16.840.1.113883.10.20.22.4.52</xsl:variable>
	<xsl:variable name="ccda-ImmunizationMedicationInformation">2.16.840.1.113883.10.20.22.4.54</xsl:variable>
	<xsl:variable name="ccda-ImmunizationRefusalReason">2.16.840.1.113883.10.20.22.4.53</xsl:variable>
	<xsl:variable name="ccda-Indication">2.16.840.1.113883.10.20.22.4.19</xsl:variable>
	<xsl:variable name="ccda-Instructions">2.16.840.1.113883.10.20.22.4.20</xsl:variable>
	<xsl:variable name="ccda-InterventionAct">2.16.840.1.113883.10.20.22.4.131</xsl:variable>
	<xsl:variable name="ccda-MedicationActivity">2.16.840.1.113883.10.20.22.4.16</xsl:variable>
	<xsl:variable name="ccda-MedicationDispense">2.16.840.1.113883.10.20.22.4.18</xsl:variable>
	<xsl:variable name="ccda-MedicationInformation">2.16.840.1.113883.10.20.22.4.23</xsl:variable>
	<xsl:variable name="ccda-MedicationSupplyOrder">2.16.840.1.113883.10.20.22.4.17</xsl:variable>
	<xsl:variable name="ccda-OutcomeObservation">2.16.840.1.113883.10.20.22.4.144</xsl:variable>
	<xsl:variable name="ccda-ParticipantCovered">2.16.840.1.113883.10.20.22.4.89</xsl:variable>
	<xsl:variable name="ccda-ParticipantPolicyHolder">2.16.840.1.113883.10.20.22.4.90</xsl:variable>
	<xsl:variable name="ccda-PerformerPayer">2.16.840.1.113883.10.20.22.4.87</xsl:variable>
	<xsl:variable name="ccda-PerformerGuarantor">2.16.840.1.113883.10.20.22.4.88</xsl:variable>
	<xsl:variable name="ccda-PlannedInterventionAct">2.16.840.1.113883.10.20.22.4.146</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivityAct">2.16.840.1.113883.10.20.22.4.39</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivityEncounter">2.16.840.1.113883.10.20.22.4.40</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivityObservation">2.16.840.1.113883.10.20.22.4.44</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivityProcedure">2.16.840.1.113883.10.20.22.4.41</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivitySubstanceAdministration">2.16.840.1.113883.10.20.22.4.42</xsl:variable>
	<xsl:variable name="ccda-PlanOfCareActivitySupply">2.16.840.1.113883.10.20.22.4.43</xsl:variable>
	<xsl:variable name="ccda-PolicyActivity">2.16.840.1.113883.10.20.22.4.61</xsl:variable>
	<xsl:variable name="ccda-PostprocedureDiagnosis">2.16.840.1.113883.10.20.22.4.51</xsl:variable>
	<xsl:variable name="ccda-PreconditionForSubstanceAdministration">2.16.840.1.113883.10.20.22.4.25</xsl:variable>
	<xsl:variable name="ccda-PregnancyObservation">2.16.840.1.113883.10.20.15.3.8</xsl:variable>
	<xsl:variable name="ccda-PostoperativeDiagnosis">2.16.840.1.113883.10.20.22.4.65</xsl:variable>
	<xsl:variable name="ccda-PriorityPreference">2.16.840.1.113883.10.20.22.4.143</xsl:variable>
	<xsl:variable name="ccda-ProblemConcernAct">2.16.840.1.113883.10.20.22.4.3</xsl:variable>
	<xsl:variable name="ccda-ProblemObservation">2.16.840.1.113883.10.20.22.4.4</xsl:variable>
	<xsl:variable name="ccda-ProblemStatus">2.16.840.1.113883.10.20.22.4.6</xsl:variable>
	<xsl:variable name="ccda-ProcedureActivityAct">2.16.840.1.113883.10.20.22.4.12</xsl:variable>
	<xsl:variable name="ccda-ProcedureActivityObservation">2.16.840.1.113883.10.20.22.4.13</xsl:variable>
	<xsl:variable name="ccda-ProcedureActivityProcedure">2.16.840.1.113883.10.20.22.4.14</xsl:variable>
	<xsl:variable name="ccda-ProcedureContext">2.16.840.1.113883.10.20.6.2.5</xsl:variable>
	<xsl:variable name="ccda-ProductInstance">2.16.840.1.113883.10.20.22.4.37</xsl:variable>
	<xsl:variable name="ccda-ReactionObservation">2.16.840.1.113883.10.20.22.4.9</xsl:variable>
	<xsl:variable name="ccda-ReferralNote">2.16.840.1.113883.10.20.22.1.14</xsl:variable>
	<xsl:variable name="ccda-ResultObservation">2.16.840.1.113883.10.20.22.4.2</xsl:variable>
	<xsl:variable name="ccda-ResultOrganizer">2.16.840.1.113883.10.20.22.4.1</xsl:variable>
	<xsl:variable name="ccda-ServiceDeliveryLocation">2.16.840.1.113883.10.20.22.4.32</xsl:variable>
	<xsl:variable name="ccda-ServiceEventProvider">2.16.840.1.113883.10.20.21.3.1</xsl:variable>
	<xsl:variable name="ccda-SeverityObservation">2.16.840.1.113883.10.20.22.4.8</xsl:variable>
	<xsl:variable name="ccda-SmokingStatusObservation">2.16.840.1.113883.10.20.22.4.78</xsl:variable>
	<xsl:variable name="ccda-SocialHistoryObservation">2.16.840.1.113883.10.20.22.4.38</xsl:variable>
	<xsl:variable name="ccda-TobaccoUse">2.16.840.1.113883.10.20.22.4.85</xsl:variable>
	<!--
	<xsl:variable name="ccda-VitalSignObservation">2.16.840.1.113883.10.20.22.4.27</xsl:variable>
	-->
	<xsl:variable name="ccda-VitalSignObservation">8716-3</xsl:variable>

	<xsl:variable name="ccda-VitalSignsOrganizer">2.16.840.1.113883.10.20.22.4.26</xsl:variable>
</xsl:stylesheet>
